package cn.hd01.service;

import java.util.List;

import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;

import cn.hd01.repository.entity.CustomerBankCard;

public interface CustomerBankCardService extends BaseService<CustomerBankCard, Integer> {
	Page<CustomerBankCard> findAll(CustomerBankCard customerBankCard, Pageable pageable);
	
	List<CustomerBankCard> findByCustomerId(Integer customerId);
	
	CustomerBankCard findByDefaultCard(Integer customerId);

	void deleteByCustomerId(Integer customerId);
}
